﻿using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Close.io.API
{

	public class CallLog : CloseIoObject
	{
		[JsonProperty(PropertyName = "lead_id")]
		public string LeadId { get; set; }


		[JsonProperty(PropertyName = "contact_id")]
		public string ContactId { get; set; }


		[JsonProperty(PropertyName = "created_by")]
		public string CreatedBy { get; set; }

		[JsonProperty(PropertyName = "user_id")]
		public string UserId { get; set; }

		[JsonProperty(PropertyName = "direction")]
		public string Direction { get; set; }

		[JsonProperty(PropertyName = "status")]
		public string Status { get; set; }

		[JsonProperty(PropertyName = "note")]

		public string Note { get; set; }

		[JsonProperty(PropertyName = "duration")]
		public int? Duration { get; set; }

		[JsonProperty(PropertyName = "phone")]
		public string Phone { get; set; }

	}

	public class Call : Activity
	{


		[JsonProperty(PropertyName = "note")]
	
		public string Note { get; set; }

		[JsonProperty(PropertyName = "duration")]
		public int? Duration { get; set; }

		[JsonProperty(PropertyName = "phone")]
		public string Phone { get; set; }

		[JsonProperty(PropertyName = "user_name")]
		public string UserName { get; set; }

		[JsonProperty(PropertyName = "source")]

		public string Source { get; set; }

		[JsonProperty(PropertyName = "remote_phone")]
		public string RemotePhone { get; set; }

		[JsonProperty(PropertyName = "voice_mail_url")]
		public string VoiceMailUrl { get; set; }

		[JsonProperty(PropertyName = "recording_url")]
		public string RecordingUrl { get; set; }
	}
}